## displayMenu is defined in WEB-INF/classes/globalMacros.vm
#macro( menuItem $menu $level )
  ## set title
  #set ($title = $displayer.getMessage($menu.title))
  #if ($level > 0)
    #if (!$menu.url) $menu.setUrl($menu.components.get(0).url) #end
    #if ($menu.components.size() > 0) 
      #set ($numItems = $menu.components.size())
    	 <li><a href="javascript:void(0)">${title}</a>
      <ul>
    #else
    	#set($index = $menu.url.lastIndexOf("/") + 1)
    	#set($rel=$menu.url.replace(".action","").substring($index))
   		 <li><a href="$!{menu.url}" target="navTab" rel="$!{rel}">${title}</a></li>
	    #if ( $velocityCount == $numItems) 
	      </ul></li>
	    #end
    #end
  #end
#end
				<div class="accordion" fillSpace="sideBar">
					<div class="accordionHeader">
						<h2><span>Folder</span>菜单</h2>
					</div>
					<div class="accordionContent">
						<ul class="tree treeFolder">
#displayMenu($menu 0)
						</ul>
					</div>
				</div>